package com.braveman.im.ui.holder;

import android.view.View;
import android.widget.TextView;

import com.braveman.im.R;
import com.braveman.im.bean.StateBean;
import com.ht.baselibs.ui.base.BaseViewHolder;

/**
 * Created by 昊昊 on 2017/10/12.
 */

public class StateHolder extends BaseViewHolder<StateBean> {
    private TextView title;
    private TextView content;

    public StateHolder() {
        super(R.layout.item_my_state);
    }

    @Override
    protected void initView() {
        title = findViewById(R.id.item_my_state_title);
        content = findViewById(R.id.item_my_state_content);
    }

    @Override
    protected void refreshView(StateBean stateBean) {
        title.setText(stateBean.title);
        content.setText(stateBean.content);
    }
}
